<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // function fn() {
    //     return ;
    // }
    
    // let fn = () => {
    //     console.log(1);
    // }
    
    // let fn = nub => nub * 2;
    // console.log(fn(10));
    
    // let fn = (nub1, nub2) => nub1 * nub2;
    // console.log(fn(10, 3));
    
    // let fn = () => '返回值';
    // console.log(fn());
    
    let fn = () => {
        console.log('天气不错');
        return '返回值';
    }
    console.log(fn());

    /*
        箭头函数：
            形参 => 返回值
            (形参, 形参) => 返回值
            () => 返回值
            () => {
                执行语句
            }
            
            () => {
                执行语句
                return 返回值
            }
            
            (形参) => {
                执行语句
                return 返回值
            }
     */
</script>
</body>
</html>
